<?php
	
	session_start();
	require("connect.php");
	$link = connect_APO();
	
	require('check.php');
	is_logged_in();
	is_admin();
	
	require("header+logoutB.php");
	headerL();
	
	echo "<html>
<body class='main'>

<FONT class='mainFont'>
  <CENTER>
    <!--<p><img src = 'images/apopic.jpg'></p>-->
    <br>
	<br>
	  <div class='headerTable'>
	  <div id='links'>
	  <div id='backLink'> <A href='usersAdmin.php'>Back to Users Administration</A></div></div>
	  <b class='b1f'></b><b class='b2f'></b><b class='b3f'></b><b class='b4f'></b>
	  <div class='contentf'>
		  <div class = 'headerText'>
				View User Information:
		  </div>
		  <div>Below you can search for users (Only fill in what you need). If you want a list of everyone and their information, click <a href=' '>here</a>.</div>
		  <div class='pad20'><form action='viewUsersToDB.php' method='post'>
			<div class='pad5'><label for='searchid'>ID:</label><input type='text' id='searchid' name='searchid'/></div>
			<div class='pad5'><label for='searchfname'>First Name: </label><input type='text' id='searchfname' name='searchfname'/></div>
			<div class='pad5'><label for='searchlname'>Last Name: </label><input type='text' id='searchlname' name='searchlname'/></div>
			<div class='pad5'><label for='searchnumber'>Phone Number: </label><input type='text' id='searchnumber' name='searchnumber'/></div>
			<div class='pad5'><label for='searchtotcredit'>Minimum Total Midweek Credit: </label><input type='text' id='searchtotcredit' name='searchtotcredit'/></div>
			<div class='pad5'><label for='searchmidweekleader'>Midweek Leader? </label>
				<select id='searchmidweekleader' name='searchmidweekleader'>
					<option value='' selected></option>
					<option value='yes'>Yes</option>
					<option value='no'>No</option>
				</select>
			</div>
			<div class='pad5'><label for='searchbrother'>Brothers Only? </label><input type='radio' name='searchbrother' value='yes'/>Yes <input type='radio' name='searchbrother' value='no' checked/>No</div>
			<div class='pad5'><label for='searchpledges'>Pledges Only? </label><input type='radio' style='margin-left: 14;' name='searchpledges' value='yes'/>Yes <input type='radio' name='searchpledges' value='no' checked/>No</div>
			<div class='pad5'><input type='submit' value='Search' class='loginButton'/><input type='reset' class='loginButton'/>
		  </form></div>
			</div>
	  <b class='b4f'></b><b class='b3f'></b><b class='b2f'></b><b class='b1f'></b>
		</div>
	</center>
</font>
</body>
</head>
</html>";

	require("footer.php");
	footer();
mysql_close($link);
?>